package com.hnkywl.sts.entity.jhgl;

import com.hnkywl.sts.entity.BaseEntity;
import org.hibernate.annotations.Where;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: ZHUCHG
 * Date: 13-4-10
 * Time: 下午9:16
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "T_BIZ_ZGZJJHMX")
@Where(clause = "deleted!='1'")
public class Zgzjjhmx extends BaseEntity {
    @Id
    @SequenceGenerator(name = "seqZgzjjhmx", allocationSize = 1, sequenceName = "SEQ_BIZ_ZGZJJHMX")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqZgzjjhmx")
    private Long id;

    private Date fkrq;
    // 付款金额
    @Column
    private Double fkje;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "ZGZZJH_ID")
    private Zgzjjh zgzjjh;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getFkrq() {
        return fkrq;
    }

    public void setFkrq(Date fkrq) {
        this.fkrq = fkrq;
    }

    public BigDecimal getFkje() {
        BigDecimal bg = new BigDecimal(fkje);
        return bg;
    }

    public void setFkje(Double fkje) {
        this.fkje = fkje;
    }

    public Zgzjjh getZgzjjh() {
        return zgzjjh;
    }

    public void setZgzjjh(Zgzjjh zgzjjh) {
        this.zgzjjh = zgzjjh;
    }
}
